home *** CD-ROM | disk | FTP | other *** search
- Path: news.magi.com!news!news.magi.com
- From: nredding@magi.com (Neil Redding)
- Newsgroups: comp.lang.c++
- Subject: Re: Pohl's "C++ for C Programmers"
- Date: Wed, 06 Mar 1996 23:03:24 -0500
- Organization: Magi Data Consulting
- Message-ID: <nredding-0603962303240001@magi06p44.magi.com>
- References: <bnelsonDnEH5y.Ax0@netcom.com>
- NNTP-Posting-Host: magi06p44.magi.com
-
- In article <bnelsonDnEH5y.Ax0@netcom.com>, bnelson@netcom.com (Bob Nelson)
- wrote:
-
- >As a longtime C programmer now trying to learn C++, I am using Ira
- >Pohl's "C++ for C Programmers" as my iniitial guide to the language.
- >
- >I am currently stalled because of an issue found in the section
- >dealing with constructors and destructors, chapter 1.6, (p. 21-22).
- >NOTE: You'll need to reference that section to follow th rest of this
- >posting.
- >
- >In particular, Pohl introduces a dynamic storage scheme for the
- >storage of an array of characters. Prior to this point, the
- >string's characters were stored in a fixed array.
- >
- >Tied into this is the overloaded '+' operator used to concatenate
- >two string-type objects. Naturally, it worked as expected when
- >the class used a fixed array for storage. Once the fixed array
- >became a dynamic object, the concatentation '+' operator ceased
- >to work --
-
- I am also learning C++ using Pohl's book. This particular program DOES work
- for me . I am using Codewarrior on a Macintosh.
-
- --
- Neil Redding
- Ottawa, Canada
-